package cn.iocoder.an.module.business.controller.admin.storemanage.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 出入库管理新增/修改 Request VO")
@Data
public class StoreManageSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "29068")
    private Long id;

    @Schema(description = "客户账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "31319")
    @NotEmpty(message = "客户账号不能为空")
    private String customerAccount;

    @Schema(description = "日期")
    private LocalDate operDate;

    @Schema(description = "图号")
    private String drawingNumber;

    @Schema(description = "品名", example = "张三")
    private String productName;

    @Schema(description = "入库数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "入库数量不能为空")
    private Integer inAmount;

    @Schema(description = "出库数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "出库数量不能为空")
    private Integer outAmount;

}